package com.cn.zy.zheda.demo.dao;

import com.cn.zy.zheda.demo.entity.AlarmEntity;
import com.cn.zy.zheda.demo.entity.AttributeKvEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhangyi
 * @date 2018/12/19 13:22
 */
@Repository
public interface AlarmDao {

    /**
     * 获取其报警信息
     *
     * @param deviceId
     * @return
     */
    List<AlarmEntity> getAlarms(String deviceId);

    /**
     * 获取...e
     *
     * @param deviceId
     * @return
     */
    List<AttributeKvEntity> getAttributeKvs(String deviceId);
}
